// 业务路由，专门存放不在菜单栏现实的页面

// 公用路由, 项目初始存在路由
import Layout from '@/layout'

const routes = [
    {
        path: '/article',
        name: 'Article',
        component: Layout,
        redirect: '/article/articleList',
        meta: { title: '活动信息', icon: 'el-icon-s-help' },
        children: [
            {
                path: 'aticleDetail/:actId/:isView',
                name: 'AticleDetail',
                component: () => import('@/views/article/articleDetail/index'),
                meta: { title: '活动详细', icon: 'nested' }
            }
        ]
    },
    {
        path: '/article',
        name: 'Article',
        component: Layout,
        redirect: '/article/articleAdd',
        meta: { title: '活动信息', icon: 'el-icon-s-help' },
        children: [
            {
                path: 'articleAdd',
                name: 'ArticleAdd',
                component: () => import('@/views/article/articleAdd/index'),
                meta: { title: '新增活动', icon: 'nested' }
            }
        ]
    },
    {
        path: '/article',
        name: 'Article',
        component: Layout,
        redirect: '/article/articleAdd',
        meta: { title: '活动信息', icon: 'el-icon-s-help' },
        children: [
            {
                path: 'articleEdit/:actId',
                name: 'ArticleEdit',
                component: () => import('@/views/article/articleEdit/index'),
                meta: { title: '活动修改', icon: 'nested' }
            }
        ]
    }
]

export default routes